from django.test import TestCase

# Create your tests here.
import os
import sys
if __name__ == '__main__':
    os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'myblog.settings')
    import django
    django.setup()
    from app01.myform import MyRegForm
    form_obj = MyRegForm({'username':'json','password':'123','confirm_password':'123','email':'1111@13.com'})
    if form_obj.is_valid():
        print(form_obj.cleaned_data)